package com.gdzn.signal.service;


import com.gdzn.common.core.domain.R;
import com.gdzn.signal.factory.RemoteSignalFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用signal服务
 * 
 * @author zdj
 */
@FeignClient(contextId = "remoteSignalService", value = "gdzn-iot-signal", fallbackFactory = RemoteSignalFallbackFactory.class)
public interface RemoteSignalService
{

    @PostMapping("/inner/signal/jsonStr")
    public void insert(@RequestBody String paramMap);

    @PostMapping("/inner/devCabinet/updateCabinetOnline/{devId}/{online}")
    public R<Boolean> updateCabinetOnline(@PathVariable("devId") String devId, @PathVariable("online") String online);

}
